package com.grad.webstudy.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.grad.webstudy.vo.BaseVo;
import com.grad.webstudy.vo.CourseVo;

import java.io.Serializable;
import java.util.Date;

public class Course extends BaseVo<CourseVo> implements Serializable {
    private Integer id;

    private String className;

    private Float score;

    private String teacher;

    private String introduction;

    private Integer studyNumber;

    private String typeId;

    private Integer scoreUser;

    private Integer level;

    private String coverPath;

    private Integer status;

    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private String baseKnowledge;

    private String learn;


    @Override
    public String toString() {
        return "ESCourse{" +
                "id=" + id +
                ", className='" + className + '\'' +
                ", score=" + score +
                ", teacher='" + teacher + '\'' +
                ", introduction='" + introduction + '\'' +
                ", studyNumber=" + studyNumber +
                ", typeId='" + typeId + '\'' +
                ", scoreUser=" + scoreUser +
                ", level=" + level +
                ", coverPath='" + coverPath + '\'' +
                ", status=" + status +
                ", createTime=" + createTime +
                ", baseKnowledge='" + baseKnowledge + '\'' +
                ", learn='" + learn + '\'' +
                '}';
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getBaseKnowledge() {
        return baseKnowledge;
    }

    public void setBaseKnowledge(String baseKnowledge) {
        this.baseKnowledge = baseKnowledge;
    }

    public String getLearn() {
        return learn;
    }

    public void setLearn(String learn) {
        this.learn = learn;
    }

    public String getCoverPath() {
        return coverPath;
    }

    public void setCoverPath(String coverPath) {
        this.coverPath = coverPath;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className == null ? null : className.trim();
    }

    public Float getScore() {
        return score;
    }

    public void setScore(Float score) {
        this.score = score;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher == null ? null : teacher.trim();
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction == null ? null : introduction.trim();
    }

    public Integer getStudyNumber() {
        return studyNumber;
    }

    public void setStudyNumber(Integer studyNumber) {
        this.studyNumber = studyNumber;
    }

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public Integer getScoreUser() {
        return scoreUser;
    }

    public void setScoreUser(Integer scoreUser) {
        this.scoreUser = scoreUser;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }


    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public CourseVo convertTo() {



        return null;
    }
}